{extend name="extra@admin/content"}
{block name="content"}
<form class="layui-form layui-box" style='padding:25px 30px 20px 0' action="__SELF__" data-auto="true" method="post">
    <div class="layui-form-item">
        <label class="layui-form-label">商品名称</label>
        <div class="layui-input-block">
            <input name="del_num" value='{$info.name}' readonly="readonly" title="商品名称" placeholder="请输入商品名称" class="layui-input ">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">商品属性</label>
        <div class="layui-input-block">
            <input name="del_num" value='{$info.spec_detail}' readonly="readonly" title="商品属性" placeholder="请输入商品属性" class="layui-input ">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">类型</label>
        <div class="layui-input-block">
          <input type="radio" lay-filter="test" name="sign" value="1" disabled="true" title="全部退货" {if condition="$info.tuihuo_sign eq 1"} checked {/if}>
          <input type="radio" lay-filter="test" name="sign" value="2" disabled="true" title="部分退货" {if condition="$info.tuihuo_sign eq 2"} checked {/if}>
        </div>
    </div>
    <div class="layui-form-item" id="del_num">
        <label class="layui-form-label">退货数量</label>
        <div class="layui-input-block">
            <input name="del_num" value='{$info.tuihuo_num}' readonly="readonly" title="退货数量" placeholder="退货数量" class="layui-input ">
        </div>
    </div>
    <div class="layui-form-item" id="res_num">
        <label class="layui-form-label">退货金额</label>
        <div class="layui-input-block">
            <input name="res_num" value='{$info.tuihuo_amount}' readonly="readonly" title="退货金额" placeholder="退货金额" class="layui-input ">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">是否二销</label>
        <div class="layui-input-block">
          <input type="radio" lay-filter="test" name="th_deal_type" value="1"  title="可二销" >
          <input type="radio" lay-filter="test" name="th_deal_type" value="2"  title="不可二销" >
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-block">
            <textarea placeholder="请输入备注，最多100个字符" maxlength="100" title="请输入备注" class="layui-textarea" name="th_deal_remark"></textarea>
        </div>
    </div>
    <div class="hr-line-dashed"></div>
    <div class="layui-form-item text-center">
        <input type='hidden' value='{$id}' name='id'/>
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
    </div>  
    <script>window.form.render();</script>
    
</form>
{/block}